﻿using System;
using System.Collections.Generic;
using System.Data.SqlClient;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace ConsoleApp1
{
    class Program
    {
        static void Main(string[] args)
        {
            string connStr = "server=.;database=test;uid=sa;pwd=123456";
            SqlConnection conn = new SqlConnection(connStr);
            string sql = "insert into userInfo values ('eee','555','55','男')";
            SqlCommand cmd = new SqlCommand(sql, conn);
            conn.Open();
            int i = cmd.ExecuteNonQuery();
            Console.WriteLine(i);
            conn.Close();

        }
    }
}
